package com.vic.sb13.testimport;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author victor
 */
public class Test {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);
        ac.start();
        Car car = ac.getBean(Car.class);

        // true 说明spring 容器中有这个对象了
        System.out.println(car != null);
    }

}
